package com.zhouhailin.shirospringbootdemo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 用户实体类
 *
 * @Author zhouhailin
 * @date 2023/1/5 14:11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
/**
 * @Accessors(chain = true)
 * 注解开启链式访问
 */
@Accessors(chain = true)
public class User {

    private String id;
    private String username;
    private String password;
    private String salt;
    private List<Role> roles;
}
